/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


XML = function () 
{
    
};

XML.prototype.FirstChild = function(node, tagName)
{
    
    var elements = node.getElementsByTagName(tagName);
    if ( elements.length > 0 ) {
        return elements[0];
    }
};

XML.prototype.Children = function(node, tagName)
{
    var elements = node.getElementsByTagName(tagName);
    if ( elements.length > 0 ) {
        return elements;
    }
};

